#ifndef ALGORITHM_H
#define ALGORITHM_H

#include <QThread>

#include "../csggrapher.h"

enum
{
    DOMAIN_TEST,
    EMPTY_TEST,
    STAR_TEST,
    HIA_TEST,
    TEST_END
};

class Algorithm : public QThread
{
    Q_OBJECT
public:
    explicit Algorithm(QObject *parent = 0);
    ~Algorithm();

    void setGrapher(CSGGrapher * g, Box * b, int t = EMPTY_TEST);

protected:
    virtual void run(){}
    
signals:
    
public slots:

protected:
    CSGGrapher * grapher;
    int type;
    StarTestBox * testBox;
    bool quitTestFlag;
    
};

#endif // ALGORITHM_H
